# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=gnome-js-common
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.1.2
pkgrel=1
pkgdesc="GNOME JavaScript common modules (mingw-w64)"
url="https://wiki.gnome.org/action/show/Projects/Seed"
license=('GPL3')
arch=('any')
makedepends=("intltool")
source=(https://download.gnome.org/sources/${_realname}/0.1/${_realname}-${pkgver}.tar.bz2)
sha256sums=('1765be99f3d83cc57e1ec13a2bb963469b8e91b60239eeaab61d66d7744496e6')

prepare() {
  cd "${srcdir}"/${_realname}-${pkgver}
}

build() {
  mkdir -p "${srcdir}/build-${CARCH}"
  cd "${srcdir}/build-${CARCH}"
  ../${_realname}-${pkgver}/configure \
      --prefix=${MINGW_PREFIX}
  make
}

package() {
  cd "${srcdir}/build-${CARCH}"
  make DESTDIR=${pkgdir} install
}
